package com.br.apurn.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name="LOCAL")
public class Local implements Persistente {
	

	private static final long serialVersionUID = 1L;
	@Id	
	@Column(name="local_id", nullable=false)	
	@SequenceGenerator(name="my_seq", sequenceName="account_user_id_seq")
	@GeneratedValue(strategy = GenerationType.SEQUENCE ,generator="my_seq")
	private Integer id;
	private String title;
	private double lat;
	private double lng;
	
	public Local() {
		
	}
	
	public Local(int id, String title, double lat, double lng) {
		super();
		this.id = id;
		this.title = title;
		this.lat = lat;
		this.lng = lng;
	}


	@Column(name="TITLE")
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column(name="LAT")
	public double getLat() {
		return lat;
	}
	public void setLat(double lat) {
		this.lat = lat;
	}
	
	@Column(name="LNG")
	public double getLng() {
		return lng;
	}
	public void setLng(double lng) {
		this.lng = lng;
	}
	@Override
	public int getId() {
		// TODO Auto-generated method stub
		return id;
	}
	@Override
	public void setId(int id) {
		this.id = id;
		
	}

}
